import request from '@/utils/request'

// 查询城市等级列表
export function listCityRank(query) {
  return request({
    url: '/driver/cityRank/list',
    method: 'get',
    params: query
  })
}

// 查询城市等级详细
export function getCityRank(id) {
  return request({
    url: '/driver/cityRank/' + id,
    method: 'get'
  })
}

// 新增城市等级
export function addCityRank(data) {
  return request({
    url: '/driver/cityRank',
    method: 'post',
    data: data
  })
}

// 修改城市等级
export function updateCityRank(data) {
  return request({
    url: '/driver/cityRank',
    method: 'put',
    data: data
  })
}

// 删除城市等级
export function delCityRank(id) {
  return request({
    url: '/driver/cityRank/' + id,
    method: 'delete'
  })
}

export function citysel() {
  return request({
    url: '/driver/cityRank/citysel',
    method: 'get'
  })
}
